package com.dimples.dd.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dimples.dd.tenant.core.dataobject.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 用户通知公告表
 */
@Schema(description="用户通知公告表")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "system_user_notice")
public class SystemUserNoticeDO extends TenantBaseDO {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="id")
    private Long id;

    /**
     * 公共通知id
     */
    @TableField(value = "notice_id")
    @Schema(description="公共通知id")
    private Long noticeId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @Schema(description="用户id")
    private Long userId;

    /**
     * 读取状态（0未读；1已读）
     */
    @TableField(value = "is_read")
    @Schema(description="读取状态（0未读；1已读）")
    private Integer isRead;

    /**
     * 阅读时间
     */
    @TableField(value = "read_time")
    @Schema(description="阅读时间")
    private LocalDateTime readTime;
}